Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 3 - Endpoints / Endpoints Reference
Functions


Establishing A Connection

To use a connection-oriented endpoint, you must use the OTBind function to specify the number of outstanding connections that the listening endpoint supports. Then you must use the functions described in this section to establish the connection. The endpoint initiating the connection uses the OTConnect and OTRcvConnect functions; the endpoint accepting the connection uses the OTListen and OTAccept functions. You use the same functions to establish a connection for both transactionless and transaction-based endpoints.

Once you have established a connection, you can send and receive data. How you do this depends on whether you are using transactionless or transaction-based service. After you are done transferring data and no longer need to stay connected, you must explicitly tear down the connection by using the functions described in the section "Tearing Down a Connection" on page 3-149.


Subtopics
OTConnect
OTRcvConnect
OTListen
OTAccept

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996